﻿using UnityEngine;
using System.Collections;

public class DrawAxis : MonoBehaviour {

	public float lenght = 100;

	private void OnDrawGizmos(){
		if(transform==null){
			return;
		}
		Gizmos.color = Color.red;
		Gizmos.DrawRay(transform.position , transform.right * lenght);
		
		Gizmos.color = Color.blue;
		Gizmos.DrawRay(transform.position , transform.forward * lenght);
		
		Gizmos.color = Color.green;
		Gizmos.DrawRay(transform.position , transform.up * lenght);
	}
}
